gtk+3.0.git
10 years agodnd: Fix issues with drag icons under Wayland
Matthias Clasen [Tue, 1 Dec 2015 15:34:26 +0000 (10:34 -0500)]
dnd: Fix issues with drag icons under Wayland

The Wayland dnd surface must remain in place until the drag
is over. Setting it directly as the hardcoded window of the
widget we construct carries the danger that it might get
destroyed prematurely, e.g. when the application calls
gtk_drag_set_icon_name more than once and we recreate the
widget.

Instead, create a dedicated toplevel, and reparent the widget
into it. To keep the code simple, we use the same approach
under X11 as well, and make it the responsibility of the
GDK dnd code to keep the window position updated. We already
pass the current pointer position to gdk_drag_motion, which
makes this very easy.

As a side-effect of these changes, it is now possible to use
non-toplevel widgets as drag icons.

https://bugzilla.gnome.org/show_bug.cgi?id=748763

10 years agoAdd gdk_drag_context_get_drag_window
Matthias Clasen [Wed, 2 Dec 2015 04:33:53 +0000 (23:33 -0500)]
Add gdk_drag_context_get_drag_window

This makes gdk_wayland_drag_context_get_dnd_window
backend-independent API and adds an implementation
for X11.

10 years agowidget: Don't update pango context in state_flags_changed
Benjamin Otte [Wed, 2 Dec 2015 04:04:41 +0000 (05:04 +0100)]
widget: Don't update pango context in state_flags_changed

It only needs to be updated in style_updated, and we do it there.

10 years agoChain up in state_flags_changed
Benjamin Otte [Wed, 2 Dec 2015 03:36:31 +0000 (04:36 +0100)]
Chain up in state_flags_changed

When introducing handlers for state_flags_changed in the node
transitions, chaining up was forgotten.

10 years agocss: Add ability to specify icontheme in CSS
Benjamin Otte [Wed, 2 Dec 2015 02:54:41 +0000 (03:54 +0100)]
css: Add ability to specify icontheme in CSS

-gtk-icontheme: "oxygen" works now.

This is a very crude implementation. It's meant for testing only.

10 years agowindow: Listen to icon theme changes on CSS
Benjamin Otte [Wed, 2 Dec 2015 02:28:36 +0000 (03:28 +0100)]
window: Listen to icon theme changes on CSS

No need to connect a signal handler to the icon theme, we get notified
via CSS.

10 years agocss: Query icon theme from style, not from settings
Benjamin Otte [Wed, 2 Dec 2015 02:18:26 +0000 (03:18 +0100)]
css: Query icon theme from style, not from settings

No need to look at the settings when the CSS has a property for the icon
theme.

10 years agospinner: Active spinners should be :checked, not :active
Benjamin Otte [Tue, 1 Dec 2015 23:39:25 +0000 (00:39 +0100)]
spinner: Active spinners should be :checked, not :active

If that sounds confusing, it's because GTK and CSS can sometimes not
agree on naming.

:active for CSS means that a button is currently pressed on an element.
And that is clearly not the case for spinning spinners.

10 years agostylecontext: Don't emit state warning for transient nodes
Benjamin Otte [Tue, 1 Dec 2015 23:26:16 +0000 (00:26 +0100)]
stylecontext: Don't emit state warning for transient nodes

It's fine to call set_state() on those.

https://bugzilla.gnome.org/show_bug.cgi?id=758930

10 years agocss: Rename -gtk-image-effect to -gtk-icon-effect
Benjamin Otte [Tue, 1 Dec 2015 21:29:24 +0000 (22:29 +0100)]
css: Rename -gtk-image-effect to -gtk-icon-effect

This is a property for icons, so we should name it as such.

10 years agoStop using gtk_icon_size_lookup_for_settings()
Benjamin Otte [Tue, 1 Dec 2015 19:12:45 +0000 (20:12 +0100)]
Stop using gtk_icon_size_lookup_for_settings()

Use the equivalent gtk_icon_size_lookup() instead.

10 years agoiconhelper: Stop tracking state
Benjamin Otte [Tue, 1 Dec 2015 18:51:44 +0000 (19:51 +0100)]
iconhelper: Stop tracking state

The iconfactory code doesn't use it anymore, so we don't need to track
it either.

10 years agoiconfactory: Make state depend on image-effect
Benjamin Otte [Tue, 1 Dec 2015 18:41:46 +0000 (19:41 +0100)]
iconfactory: Make state depend on image-effect

This removes the dependency on state, which should be used for selection
CSS styles, not for actually applying them.

And image-effect does exactly what we want already, so we can start
using it.

10 years agoiconhelper: Remove _gtk_icon_helper_ensure_pixbuf()
Benjamin Otte [Tue, 1 Dec 2015 17:32:00 +0000 (18:32 +0100)]
iconhelper: Remove _gtk_icon_helper_ensure_pixbuf()

The code isn't used anymore. Everything uses
gtk_icon_helper_load_surface() now.

10 years agostatusicon: Use gtk_icon_helper_load_surface()
Benjamin Otte [Tue, 1 Dec 2015 17:31:38 +0000 (18:31 +0100)]
statusicon: Use gtk_icon_helper_load_surface()

This is in preparation for the next commit.

10 years agodnd: Add gtk_drag_set_icon_definition()
Benjamin Otte [Tue, 1 Dec 2015 16:42:09 +0000 (17:42 +0100)]
dnd: Add gtk_drag_set_icon_definition()

... and use it for entry icons.

As a side effect, icons dragged from entries will now resize to DND
size.

10 years agoimagedefinition: Remove icon-size
Benjamin Otte [Tue, 1 Dec 2015 03:44:29 +0000 (04:44 +0100)]
imagedefinition: Remove icon-size

The size of icons is a property that is relevant to who is rendering the
icon, not to the icon itself.

Example: Starting a DND operation from an entry icon should cause the
icon to resize (from the entr icon's size to the DND icon size).

10 years agodnd: Rewrite iconhelper code
Benjamin Otte [Tue, 1 Dec 2015 01:25:17 +0000 (02:25 +0100)]
dnd: Rewrite iconhelper code

It now uses GtkImageDefinition instead.

10 years agoentry: Use gtk_icon_helper_load_surface()
Benjamin Otte [Mon, 30 Nov 2015 00:49:49 +0000 (01:49 +0100)]
entry: Use gtk_icon_helper_load_surface()

This is the first step towards getting rid of pixbuf loading code in the
icon helper.

10 years agoiconhelper: Add a scale argument to gtk_icon_helper_load_surface()
Benjamin Otte [Mon, 30 Nov 2015 00:33:14 +0000 (01:33 +0100)]
iconhelper: Add a scale argument to gtk_icon_helper_load_surface()

It will be used in the next patch.

10 years agoiconhelper: Refactor ensure_surface()
Benjamin Otte [Sun, 29 Nov 2015 23:55:43 +0000 (00:55 +0100)]
iconhelper: Refactor ensure_surface()

Make gtk_icon_helper_ensure_surface() a private function that just
ensures the surface was loaded.

Add gtk_icon_helper_load_surface() that is called by the above function
and the dnd code to actually load the surface.

10 years agoiconhelper: Store surface in ensure_surface()
Benjamin Otte [Sun, 29 Nov 2015 23:45:58 +0000 (00:45 +0100)]
iconhelper: Store surface in ensure_surface()

Do not assign it in the functions that actually load the surface. Make
those just return the surface.

10 years agoiconhelper: Don't store surface size
Benjamin Otte [Sun, 29 Nov 2015 19:21:25 +0000 (20:21 +0100)]
iconhelper: Don't store surface size

Instead, compute it on demand.

This avoids having to cache it in lots of places and simplifies code.

10 years agoiconhelper: Move invalidation check
Benjamin Otte [Sun, 29 Nov 2015 18:45:52 +0000 (19:45 +0100)]
iconhelper: Move invalidation check

Just do the invalidation check once, there's no need to do it in every
branch of the switch.

Also remove useless checks: These functions will not be called if we
already have a rendered surface.

10 years agodnd: Use surface for dnd icon instead of pixbuf
Benjamin Otte [Sun, 29 Nov 2015 02:23:59 +0000 (03:23 +0100)]
dnd: Use surface for dnd icon instead of pixbuf

10 years agoiconhelper: Move invalidation check
Benjamin Otte [Sun, 29 Nov 2015 00:36:10 +0000 (01:36 +0100)]
iconhelper: Move invalidation check

Just do the invalidation check once, there's no need to do it in every
branch of the switch.

Also remove useless checks: These functions will not be called if we
already have a rendered surface.

10 years agoiconhelper: Improve size determination for surfaces
Benjamin Otte [Sat, 28 Nov 2015 06:06:37 +0000 (07:06 +0100)]
iconhelper: Improve size determination for surfaces

Instead of just working for image surface, this should now work for all
bounded surfaces.

Test included.

10 years agoiconhelper: Move size computation
Benjamin Otte [Fri, 27 Nov 2015 17:05:36 +0000 (18:05 +0100)]
iconhelper: Move size computation

We do a switch on the image type, so compute the size for a certain
image type right there.

10 years agoimage: queue_resize() after changing icon-size property
Benjamin Otte [Thu, 26 Nov 2015 14:37:42 +0000 (15:37 +0100)]
image: queue_resize() after changing icon-size property

10 years agodragsource: Store an itemdefinition, not an iconhelper
Benjamin Otte [Wed, 25 Nov 2015 14:59:44 +0000 (15:59 +0100)]
dragsource: Store an itemdefinition, not an iconhelper

The icon is never rendered, so there's no need for the extra iconhelper
code.

10 years agoimagedefinition: Split out from icon helper
Benjamin Otte [Tue, 24 Nov 2015 18:55:09 +0000 (19:55 +0100)]
imagedefinition: Split out from icon helper

The image definition is supposed to hold the description about the image
to be displayed. The icon helper actually does caching and tracks
changes.

10 years agowindow: Remove suspicious branch
Benjamin Otte [Tue, 1 Dec 2015 16:25:54 +0000 (17:25 +0100)]
window: Remove suspicious branch

It seems this branch is not needed anymore. It was originally added in
1999 to support gtk_widget_realize(), but all those reasons seem
obsolete today.
Instead just call gtk_widget_realize().

If you end up at this commit when bisecting:
There is no bug that made me remove this code, it was purely meant to be
cleanup / dead code removal. I seem to have introduced a new bug or
bisecting wouldn't have let you here. So it seems we should just revert
this commit.

10 years agoRevert "gdk_pixbuf_get_from_window: honor device scale"
Benjamin Otte [Sun, 29 Nov 2015 03:49:20 +0000 (04:49 +0100)]
Revert "gdk_pixbuf_get_from_window: honor device scale"

This reverts commit 657a43e54e7721fced8ef0e6808271838f14697f.

The commit breaks the assumptions about the arguments in both
gdk_pixbuf_get_from_window() and gdk_pixbuf_get_from_surface().

https://bugzilla.gnome.org/show_bug.cgi?id=757147

10 years agowayland: Remove unused variable
Benjamin Otte [Tue, 1 Dec 2015 23:26:20 +0000 (00:26 +0100)]
wayland: Remove unused variable

Poor gcc was unhappy.

10 years agopopover: Make it possible to constrain to toplevel
Matthias Clasen [Tue, 1 Dec 2015 19:56:56 +0000 (14:56 -0500)]
popover: Make it possible to constrain to toplevel

Under X11, popovers are always constrained to the toplevel
window. Under Wayland, they aren't. This commit adds a
property that allows to explicitly constrain popovers to
the toplevel, giving them the same behavior under Wayland
as under X11.

https://bugzilla.gnome.org/show_bug.cgi?id=757474

10 years agofilechooserbutton: add some spacing between icon and text
Christian Hergert [Tue, 1 Dec 2015 07:09:31 +0000 (23:09 -0800)]
filechooserbutton: add some spacing between icon and text

These were a bit crammed, which doesn't match well with spacing used in
various other parts of gtk.

10 years agogtkwindow: remove headerbar after disposing parent
Olivier Fourdan [Wed, 25 Nov 2015 17:06:53 +0000 (18:06 +0100)]
gtkwindow: remove headerbar after disposing parent

Widgets such as gtkfilechooser may be saving their size and position on
the unmap callback, if the client-side decoration header bar is removed
first, the reported size will be wrong.

https://bugzilla.gnome.org/show_bug.cgi?id=756618

10 years agowayland: re-configure surface even if size matches
Olivier Fourdan [Tue, 1 Dec 2015 13:52:03 +0000 (14:52 +0100)]
wayland: re-configure surface even if size matches

gdk-wayland backend would not re-configure a surface when its size and
scale match the known size and scale.

But there might be a pending xdg_surface_configure() that would revert
this change so we should re-configure even if the currently known
size/scale match, otherwise we may end up with a wrong size after the
xdg_surface_configure() is received.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=758901

10 years agowayland: Invert drop_finished/button release call order
Carlos Garnacho [Tue, 1 Dec 2015 14:11:52 +0000 (15:11 +0100)]
wayland: Invert drop_finished/button release call order

If we "release" the button first, the drag will be eventually cancelled,
we must first signal GDK_DROP_FINISHED, and then release the button so
the success status prevails.

10 years agowayland: Store requested target on GdkWaylandSelection
Carlos Garnacho [Tue, 1 Dec 2015 12:58:21 +0000 (13:58 +0100)]
wayland: Store requested target on GdkWaylandSelection

It doesn't make a lot of sense to have this stored as data offer data,
rather together with the source_targets array, which is what we're
poking here in the end.

https://bugzilla.gnome.org/show_bug.cgi?id=758713

10 years agoAdd some more missing nullable annotations
Timm Bäder [Tue, 1 Dec 2015 12:40:46 +0000 (13:40 +0100)]
Add some more missing nullable annotations

10 years agoGtkBox: The center widget can be NULL
Timm Bäder [Tue, 1 Dec 2015 12:36:21 +0000 (13:36 +0100)]
GtkBox: The center widget can be NULL

Propagates to GtkActionBar.

10 years agoGtkWidget: Add some missing nullable annotations
Timm Bäder [Tue, 1 Dec 2015 12:31:08 +0000 (13:31 +0100)]
GtkWidget: Add some missing nullable annotations

10 years agoinspector: Show the size request mode
Matthias Clasen [Tue, 1 Dec 2015 03:27:27 +0000 (22:27 -0500)]
inspector: Show the size request mode

This is not a property, so show it in the misc page.

10 years agowindow: Use g_set_object
Matthias Clasen [Tue, 1 Dec 2015 01:45:57 +0000 (20:45 -0500)]
window: Use g_set_object

No need to do the same thing manually.

10 years agotestentryicons: update dnd example
Matthias Clasen [Mon, 30 Nov 2015 23:41:33 +0000 (18:41 -0500)]
testentryicons: update dnd example

This code was #ifdefed out since 2008. Time to try it.

10 years agotestentryicons: Use an existing icon name
Matthias Clasen [Mon, 30 Nov 2015 23:21:44 +0000 (18:21 -0500)]
testentryicons: Use an existing icon name

dialog-info is not an existing icon.

10 years agowayland: Refactor selection ownership
Carlos Garnacho [Mon, 30 Nov 2015 17:35:10 +0000 (18:35 +0100)]
wayland: Refactor selection ownership

Dissociate ownership from our maintenance of wl_data_source objects.
The only place where ownership must be updated together is
data_source.cancelled, for the other places GDK should take care of
setting up the right ownership, even if at a different order than
we'd expect here.

This fixes GTK+ apps on wayland being locally confused about the
current selection ownership. Because gtk_selection_add_targets()
results in a wl_data_source being created, and ownership being
updated right away, early callers of this will change the ownership
even if the widget it's being called on didn't explicitly request
the selection ownership yet.

https://bugzilla.gnome.org/show_bug.cgi?id=758660

10 years agotextiter: fix bug in case insensitive backward search
Sébastien Wilmet [Thu, 26 Nov 2015 12:31:19 +0000 (13:31 +0100)]
textiter: fix bug in case insensitive backward search

'win.lines' contains the same content as the GtkTextBuffer, so to find
@match_start, forward_chars_with_skipping() is called with
skip_decomp=FALSE (the last parameter). So far so good.

On the other hand, the content 'lines' (the needle split in lines) is
casefolded and normalized for a case insensitive search. So,
forward_chars_with_skipping(..., skip_decomp=TRUE) must be called only
for the portion of text containing the needle.

Since 'start_tmp' contains the location at the start of the match, we
can simply begin at that location to find the end of the match.

Unit tests are added.

https://bugzilla.gnome.org/show_bug.cgi?id=758698

10 years agolistbox: Use :focus-on-click policy from row instead of list
Florian Müllner [Wed, 25 Nov 2015 00:05:04 +0000 (01:05 +0100)]
listbox: Use :focus-on-click policy from row instead of list

Using the property from the container is inconsistent with the
:selectable and :activatable properties, which are per row.

10 years agoicon-browser: Stop using GtkMisc properties
Timm Bäder [Sat, 28 Nov 2015 20:00:29 +0000 (21:00 +0100)]
icon-browser: Stop using GtkMisc properties

Instead of xpad/ypad of 4 for every widget, just increase the
row-spacing and column-spacing by 8.

https://bugzilla.gnome.org/show_bug.cgi?id=758790

10 years agoicon-browser: Use proper "times" character
Timm Bäder [Sat, 28 Nov 2015 19:51:48 +0000 (20:51 +0100)]
icon-browser: Use proper "times" character

https://bugzilla.gnome.org/show_bug.cgi?id=758790

10 years agoicon-browser: baseline-align the icon size labels
Timm Bäder [Sat, 28 Nov 2015 19:48:40 +0000 (20:48 +0100)]
icon-browser: baseline-align the icon size labels

https://bugzilla.gnome.org/show_bug.cgi?id=758790

10 years agostack: Update windows before allocating children
Matthias Clasen [Mon, 30 Nov 2015 15:35:04 +0000 (10:35 -0500)]
stack: Update windows before allocating children

Doing things the other way around seems to cause problems in
some cases where children want to do different things depending
on the window position.

https://bugzilla.gnome.org/show_bug.cgi?id=758563

10 years agoscalebutton: Annotate the return type
Emmanuele Bassi [Mon, 30 Nov 2015 14:09:19 +0000 (14:09 +0000)]
scalebutton: Annotate the return type

Instead of just listing the return type of get_plus_button() and
get_minus_button() in the documentation, we can use the (type)
annotation to ensure that the introspection data reflects the actual
type of the returned widget.

10 years agogtkwindow: fix regression with firefox dropdown menu
Benjamin Otte [Thu, 26 Nov 2015 10:00:17 +0000 (11:00 +0100)]
gtkwindow: fix regression with firefox dropdown menu

Fix a regression introduced by:

commit 6866d1c widget: Make gtk_widget_queue_allocate() not resize

Where the dropdown menu in Firefox would not be relocated after the
toplevel window is moved.

bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=758609

10 years agoGtkScaleButton: _get_(plus|minus)_button returns a GtkButton
Timm Bäder [Sun, 22 Nov 2015 09:35:25 +0000 (10:35 +0100)]
GtkScaleButton: _get_(plus|minus)_button returns a GtkButton

https://bugzilla.gnome.org/show_bug.cgi?id=539944

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 28 Nov 2015 09:27:22 +0000 (09:27 +0000)]
Updated Portuguese translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 28 Nov 2015 09:21:52 +0000 (09:21 +0000)]
Updated Portuguese translation

10 years agoUpdated Polish translation
Piotr Drąg [Fri, 27 Nov 2015 22:30:07 +0000 (23:30 +0100)]
Updated Polish translation

10 years agoAdwaita: No background for spinners
Matthias Clasen [Thu, 26 Nov 2015 20:01:22 +0000 (15:01 -0500)]
Adwaita: No background for spinners

Blue background for spinners doesn't make sense.

10 years agoGDK W32: Add a comment for clarity
Руслан Ижбулатов [Sat, 21 Nov 2015 04:00:33 +0000 (04:00 +0000)]
GDK W32: Add a comment for clarity

This is a copy of a similar comment in another place, which explains
why WS_EX_TRANSPARENT windows get a special treatment.

https://bugzilla.gnome.org/show_bug.cgi?id=758484

10 years agoGDK W32: Clarify the use of the second argument to SetWindowPos()
Руслан Ижбулатов [Sat, 21 Nov 2015 03:58:22 +0000 (03:58 +0000)]
GDK W32: Clarify the use of the second argument to SetWindowPos()

https://bugzilla.gnome.org/show_bug.cgi?id=758484

10 years agoGDK W32: Don't use SetWindowLong() to set/unset WS_EX_TOPMOST
Руслан Ижбулатов [Sat, 21 Nov 2015 03:48:55 +0000 (03:48 +0000)]
GDK W32: Don't use SetWindowLong() to set/unset WS_EX_TOPMOST

While searching for the cause of bug 746745 it was discovered that one could
not set WS_EX_TOPMOST extended window style with SetWindowLong(),
but must use SetWindowPos() for that purpose.

This was never a problem most likely because it is highly unlikely for windows
to acquire/lose WS_EX_TOPMOST after they are created, by means other
than SetWindowPos() (which GTK does use to raise/lower windows and
set/remove keep_above), and because trying to set/unset WS_EX_TOPMOST with
SetWindowLong() results in WS_EX_TOPMOST merely not being set/unset (that is,
other styles are still set/unset within the same call and no error is
signalled).

https://bugzilla.gnome.org/show_bug.cgi?id=758483

10 years agowayland: Use xdg shell protocol from wayland-protocols
Jonas Ådahl [Wed, 18 Nov 2015 03:46:50 +0000 (11:46 +0800)]
wayland: Use xdg shell protocol from wayland-protocols

Drop our own copy of the xdg shell XML file, and use the one installed
by wayland-protocols.

https://bugzilla.gnome.org/show_bug.cgi?id=758634

10 years agowayland: Use pointer gestures protocol from wayland-protocols
Jonas Ådahl [Wed, 18 Nov 2015 03:38:28 +0000 (11:38 +0800)]
wayland: Use pointer gestures protocol from wayland-protocols

Instead of having our own copy of the pointer gestures XML file, use
the one installed by wayland-protocols.

Since pointer gestures is an unstable protocol, it went through the
unstable protocol naming convention changes, which is reflected in this
commit.

https://bugzilla.gnome.org/show_bug.cgi?id=758634

10 years agoUpdated POTFILES.in
Piotr Drąg [Wed, 25 Nov 2015 23:51:08 +0000 (00:51 +0100)]
Updated POTFILES.in

10 years agoGtkWindow: Reset gestures after triggering right click titlebar action
Carlos Garnacho [Wed, 25 Nov 2015 16:28:15 +0000 (17:28 +0100)]
GtkWindow: Reset gestures after triggering right click titlebar action

Just like it happens for window dragging, we're likely to not see the
matching button release for this event, so we must reset the controller
manually here.

https://bugzilla.gnome.org/show_bug.cgi?id=758661

10 years agowindow: Don't lose position information
Benjamin Otte [Wed, 25 Nov 2015 14:25:55 +0000 (15:25 +0100)]
window: Don't lose position information

Before calling gdk_window_move_resize(), store the full configure
request, not just width and height.

Fixes firefox randomly losing position of its dropdown windows.

https://bugzilla.gnome.org/show_bug.cgi?id=758609

10 years agodnd: Split GtkDragSourceSite into its own file
Benjamin Otte [Sun, 22 Nov 2015 04:26:08 +0000 (05:26 +0100)]
dnd: Split GtkDragSourceSite into its own file

10 years agodnd-quartz: fix missing icon helper include
Christoph Reiter [Wed, 25 Nov 2015 19:27:21 +0000 (20:27 +0100)]
dnd-quartz: fix missing icon helper include

10 years agodnd: Just pass iconhelper instead of whole DragSourceSite
Benjamin Otte [Sun, 22 Nov 2015 04:08:34 +0000 (05:08 +0100)]
dnd: Just pass iconhelper instead of whole DragSourceSite

Simplifies the code.

10 years agodnd: Remove unused struct members
Benjamin Otte [Sat, 21 Nov 2015 19:14:24 +0000 (20:14 +0100)]
dnd: Remove unused struct members

10 years agoiconhelper: Don't include gtk.h
Benjamin Otte [Sat, 21 Nov 2015 16:38:48 +0000 (17:38 +0100)]
iconhelper: Don't include gtk.h

10 years agoiconhelper: Remove unused function
Benjamin Otte [Mon, 23 Nov 2015 04:00:39 +0000 (05:00 +0100)]
iconhelper: Remove unused function

10 years agoiconhelper: Remove unused context argument
Benjamin Otte [Sun, 22 Nov 2015 18:42:33 +0000 (19:42 +0100)]
iconhelper: Remove unused context argument

Various functions don't use the style context.

10 years agowayland: remove embarrassing g_print()s
Carlos Garnacho [Tue, 24 Nov 2015 19:57:03 +0000 (20:57 +0100)]
wayland: remove embarrassing g_print()s

10 years agowayland: Do not store the grab cursor separately
Carlos Garnacho [Fri, 19 Jun 2015 12:02:42 +0000 (14:02 +0200)]
wayland: Do not store the grab cursor separately

After the grab is finished, we would expect an enter event, and
GDK updating internally the cursor for that window and device.
This means there is no need at all to store it separately in the
backend.

As a side effect, animated cursors are now also possible on grab
icons.

https://bugzilla.gnome.org/show_bug.cgi?id=735847

10 years agodevice: Fix dispose
Carlos Garnacho [Tue, 24 Nov 2015 16:53:41 +0000 (17:53 +0100)]
device: Fix dispose

The way master devices detach from their other master counterpart is
vulnerable to infinite recursion due to the way we first recurse on
the other device before clearing the pointer, this may happen if
that last reference to the other master device is held by the
device->associated field.

https://bugzilla.gnome.org/show_bug.cgi?id=732742

10 years agowayland: Plug surface leak
Carlos Garnacho [Tue, 24 Nov 2015 16:41:58 +0000 (17:41 +0100)]
wayland: Plug surface leak

Other backends take care of the cairo surface destruction in
GdkWindow::destroy. We must do the same here, or the cairo_surface
and its corresponding wl_buffer are left dangling.

https://bugzilla.gnome.org/show_bug.cgi?id=747295

10 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 24 Nov 2015 15:20:20 +0000 (15:20 +0000)]
Updated Spanish translation

10 years agodialog: Use an element name
Matthias Clasen [Tue, 24 Nov 2015 12:41:26 +0000 (07:41 -0500)]
dialog: Use an element name

This will help differentiating dialogs from other windows, style-wise.

10 years agoGtkPopover: Restore tails
Timm Bäder [Tue, 24 Nov 2015 10:37:00 +0000 (11:37 +0100)]
GtkPopover: Restore tails

The call to gtk_style_context_get_border was accidentally removed in
2182fe7d9d6246e7acfe4e9ef0ca26c4a6893be6.

10 years agoinspector: Leave unneeded widgets out of source files
Timm Bäder [Tue, 24 Nov 2015 09:48:28 +0000 (10:48 +0100)]
inspector: Leave unneeded widgets out of source files

10 years agoGtkWidget: Add some missing nullable annotations
Timm Bäder [Tue, 24 Nov 2015 09:49:05 +0000 (10:49 +0100)]
GtkWidget: Add some missing nullable annotations

10 years agoGtkStack: Add some missing nullable annotations
Timm Bäder [Tue, 24 Nov 2015 08:44:08 +0000 (09:44 +0100)]
GtkStack: Add some missing nullable annotations

10 years agoAdd a test for deprecated css properties
Matthias Clasen [Tue, 24 Nov 2015 03:31:20 +0000 (22:31 -0500)]
Add a test for deprecated css properties

10 years ago3.19.3
Matthias Clasen [Mon, 23 Nov 2015 20:36:34 +0000 (15:36 -0500)]
3.19.3

10 years agoshortcuts section: Fix destroy
Matthias Clasen [Tue, 24 Nov 2015 00:48:50 +0000 (19:48 -0500)]
shortcuts section: Fix destroy

The container destroy implementation does not quite work here,
so do our own.

10 years agoFix some new symbols for the docs
Matthias Clasen [Mon, 23 Nov 2015 22:00:24 +0000 (17:00 -0500)]
Fix some new symbols for the docs

10 years agoRaleigh: Avoid deprecated icon-shadow
Matthias Clasen [Mon, 23 Nov 2015 19:44:27 +0000 (14:44 -0500)]
Raleigh: Avoid deprecated icon-shadow

10 years agoplaces view: Fix up docs
Matthias Clasen [Mon, 23 Nov 2015 19:23:16 +0000 (14:23 -0500)]
places view: Fix up docs

10 years agogtk: Fix make dist
Rico Tzschichholz [Mon, 23 Nov 2015 21:24:41 +0000 (22:24 +0100)]
gtk: Fix make dist

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 23 Nov 2015 18:04:26 +0000 (19:04 +0100)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 23 Nov 2015 18:04:16 +0000 (19:04 +0100)]
Updated Spanish translation

10 years agosearchenginetracker: Remove astray ");" closing a function
Carlos Garnacho [Mon, 23 Nov 2015 17:18:46 +0000 (18:18 +0100)]
searchenginetracker: Remove astray ");" closing a function

Sad face for me.

10 years agosearchenginetracker: Optimize direct/recursive folder lookups
Carlos Garnacho [Fri, 20 Nov 2015 18:04:39 +0000 (19:04 +0100)]
searchenginetracker: Optimize direct/recursive folder lookups

tracker:uri-is-descendant/parent has the unfortunate side effect of
rendering the collation mechanisms in the database useless, so those
require full table scans to be validated.

Performing these as pure string comparisons will perform much better,
as those allow the underlying sqlite to rely on its own collation
to perform the search, which can be significantly faster with many
elements in the database.

https://bugzilla.gnome.org/show_bug.cgi?id=758407

10 years agosearchenginetracker: ensure nie:url is bound
Carlos Garnacho [Fri, 20 Nov 2015 18:02:17 +0000 (19:02 +0100)]
searchenginetracker: ensure nie:url is bound

This could produce strange warnings as it is currently passed to
tracker:uri-is-* sparql functions, as these expect no NULLs.

https://bugzilla.gnome.org/show_bug.cgi?id=758407

10 years agolast last gesture stock image fixes
Jakub Steiner [Mon, 23 Nov 2015 15:13:45 +0000 (16:13 +0100)]
last last gesture stock image fixes

- swipe left was missing outline conversion to allow recolorization

10 years agoLoad gesture images as symbolic icons
Matthias Clasen [Mon, 23 Nov 2015 15:07:44 +0000 (10:07 -0500)]
Load gesture images as symbolic icons

This makes them recolor in the dark theme, which looks better.